package com.renfei.multimediatask.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.renfei.multimediatask.Course;
import com.renfei.multimediatask.R;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class OpenGLCourseAdapter extends BaseQuickAdapter<Course, BaseViewHolder> {
    public OpenGLCourseAdapter(@Nullable List<Course> data) {
        super(R.layout.item_opengl_course, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, Course course) {


        baseViewHolder
                .setText(R.id.tv_mediamuxer_video,course.getTitle())
                .setText(R.id.tv_subtitle,course.getSubTitle())
        ;
    }
}
